From: Giovanni Campagna Date: Thu, 31 Mar 2011 16:03:50 +0000 (+0200) Subject: NetworkMenu: fix parameters to _findConnection X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8395 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5b6148514384517c7a3069e5ec3770dd1cd1d966;p=gnome-shell.git NetworkMenu: fix parameters to _findConnection NMDevice._findConnection expects an uuid as parameter, but checkConnection was passing a NMConnection object. This caused exists to be always false, thus the connection was added again every time the 'updated' signal was emitted. https://bugzilla.gnome.org/show_bug.cgi?id=645702 --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index bd57ed759..ffcab09b2 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -424,7 +424,7 @@ NMDevice.prototype = { }, checkConnection: function(connection) { - let exists = this._findConnection(connection) != -1; + let exists = this._findConnection(connection._uuid) != -1; let valid = this.connectionValid(connection); if (exists && !valid) this.removeConnection(connection);